package org.bot.plugin.web.event;


import org.bot.api.config.ClientConfig;
import org.bot.api.event.DataStorage;
import org.bot.api.event.EventName;
import org.bot.api.event.Events;
import org.bot.api.flow.FlowNode;
import org.bot.plugin.web.source.SourceManageImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@EventName("创建浏览器")
public class WebOpenWindow implements Events {

    @Autowired
    SourceManageImpl sourceManage;

    @Override
    public Object exec(FlowNode note, DataStorage data) {
        return sourceManage.getSource();
    }

}
